package com.blank.booksystem.server;

import com.blank.booksystem.dao.BookDAO;
import com.blank.booksystem.mybatis.entity.Book;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author blank 2021-4-14 下午 02:38
 * @version 1.0.0
 */
@Service
@Transactional
public class BookServerImpl implements BookServer {

    @Autowired
    private BookDAO bookDAO;

    @Override
    public List<Book> findAll() {
        return bookDAO.findAll();
    }
}
